#ifndef MINIBSPLINECURVEHANDLER_H
#define MINIBSPLINECURVEHANDLER_H

#include "MiniHandler.h"
#include "MiniBSplineCurve.h"

class MiniBSplineCurveHandler : public MiniHandler
{
public:
    MiniBSplineCurveHandler(MiniObject *obj);

    virtual float CheckCollision(QPointF pos, QMatrix4x4 projection) override;
    virtual void ChangeVertex(Vector3f dv) override;

protected:
    virtual void UpdateHandler() override;

    void LoadSpline();  // 载入样条数据
    void LoadCptPoly(); // 载入控制多边形
    void LoadCpts();    // 载入控制点数据
};

#endif // MINIBSPLINECURVEHANDLER_H
